<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title></title>
    <link rel="stylesheet" href="./css/mui-3.7.2.css">
    <link rel="stylesheet" href="./css/reset.css">
    <!-- 当前页css -->
    <link rel="stylesheet" href="./css/learn-record.css">
    <!-- <link rel="stylesheet" href="./css/animate.css"> -->
</head>
<body>
<!-- 父容器 -->
<div class="container">
    <!-- 顶部头 -->
    <div class="top clearfix">
        <div class="back fl">返回</div>
        <div class="title fl">学习记录</div>
    </div>
    <!-- 我的作业内容 -->
    <div class="content">
        <!-- 历史作业 -->
        <ul class="history-home">
            <!-- <li>
                <a href="#">
                    <div class="content">
                        <div class="time">
                            <span class="">12-08</span>&nbsp;<span class="">15:34</span>
                        </div>
                        <div class="homework-desc">
                            <div>
                                <h4>经典A班《格鲁夫系列》-第1周</h4>
                                <p><span>包政</span> | 时长<span>16:31</span></p>
                            </div>
                        </div>
                    </div>
                </a>
            </li> -->
        </ul>
    </div>
</div>

<!-- 移动端适配 -->
<script src="./js/flexible.js"></script>
<script src="./js/time-filter.js"></script>
<script src="./js/mui-3.7.2.js"></script>
<script src="./js/jquery.js"></script>
<script src="./js/ajax.js"></script>
<script src="./js/index.js"></script>
<script>
     var getParams = function(data){
         var passData = JSON.parse(data);
         //获取学习记录
         getLearnRecord(
             {
                 'studentId': passData.studentId
             },
             function (res) {
                 //获取页面高度
                 var bodyHeight = screen.height;
                 console.log(bodyHeight);
                 // alert(bodyHeight);
                 $('.container').height(bodyHeight + '/75rem');
                 console.log(res);
                 for (var i = 0; i < res.data.length; i++) {
                     var data = res.data[i];
                     $('.history-home').append(
                         '<li>'
                         + '	<a href="#">'
                         + '		<div class="content">'
                         + '			<div class="time">'
                         + '				<span>' + timeFilter(data.modiTime) + '</span>'
                         + '			</div>'
                         + '			<div class="homework-desc">'
                         + '				<div>'
                         + '					<h4>' + data.title + '</h4>'
                         + '					<p><span>' + data.author + '</span> | 时长<span>' + data.timeLength + '</span></p>'
                         + '				</div>'
                         + '			</div>'
                         + '		</div>'
                         + '	</a>'
                         + '</li>'
                     );
                 }
             });
     }
</script>
<script src="./js/learn-record.js"></script>
</body>
</html>
